package com.lovo.controller;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.bean.Tender;
import com.lovo.service.ITenderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 * 前端控制器
 * </p>
 *
 * @author lovo
 * @since 2022-09-17
 */
@RestController
@RequestMapping("supplier/tender")
public class TenderController {

    @Autowired
    private ITenderService tenderService;

    @GetMapping("findNewTender/{pageNO}")
    public IPage<Tender> findNewTender(@PathVariable("pageNO") Integer pageNO) {
        return tenderService.findNewTender(pageNO);
    }



}
